package top.happylaishop.shop.service;

import top.happylaishop.shop.dto.ProductDetailDto;
import top.happylaishop.shop.dto.ProductDto;
import top.happylaishop.shop.dto.ProductListDto;
import top.happylaishop.shop.dto.UserDto;
import top.happylaishop.shop.utils.PageDto;
import top.happylaishop.shop.utils.resp.BaseResponse;
import top.happylaishop.shop.utils.resp.RestResponse;

public interface ProductService {

    void listPage(PageDto<ProductListDto> productListDtoPageDto, Integer categoryId, String keyword);

    BaseResponse saveOrUpdateProduct(ProductDto productDto, UserDto currentUser);

    BaseResponse updateSaleStatusById(ProductDto productDto, UserDto currentUser);

    RestResponse<ProductDetailDto> getDetailById(Integer id);
}
